package com.ruoyi.web.controller.mall.goodsImages.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 商品图片对象 goods_images
 * 
 * @author ruoyi
 * @date 2021-01-18
 */
public class GoodsImages //extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private String id;

    /** 商品ID */
    @Excel(name = "商品ID")
    private String goodsId;

    /** 图片地址 */
    @Excel(name = "图片地址")
    private String imgurl;

    /** 位置(0-商品轮播图,1-详情图片,2首页轮播图) */
    @Excel(name = "位置(0-商品轮播图,1-详情图片,2首页轮播图)")
    private Integer address;

    /** 排序字段 */
    @Excel(name = "排序字段")
    private Integer location;

    /** 操作人 */
    @Excel(name = "操作人")
    private Long userIdCreate;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date gmtCreate;

    /** 删除标记 */
    private Integer delFlag;

    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }
    public void setGoodsId(String goodsId) 
    {
        this.goodsId = goodsId;
    }

    public String getGoodsId() 
    {
        return goodsId;
    }
    public void setImgurl(String imgurl) 
    {
        this.imgurl = imgurl;
    }

    public String getImgurl() 
    {
        return imgurl;
    }
    public void setAddress(Integer address)
    {
        this.address = address;
    }

    public Integer getAddress()
    {
        return address;
    }
    public void setLocation(Integer location)
    {
        this.location = location;
    }

    public Integer getLocation()
    {
        return location;
    }
    public void setUserIdCreate(Long userIdCreate)
    {
        this.userIdCreate = userIdCreate;
    }

    public Long getUserIdCreate() 
    {
        return userIdCreate;
    }
    public void setGmtCreate(Date gmtCreate) 
    {
        this.gmtCreate = gmtCreate;
    }

    public Date getGmtCreate() 
    {
        return gmtCreate;
    }
    public void setDelFlag(Integer delFlag) 
    {
        this.delFlag = delFlag;
    }

    public Integer getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("goodsId", getGoodsId())
            .append("imgurl", getImgurl())
            .append("address", getAddress())
            .append("location", getLocation())
            .append("userIdCreate", getUserIdCreate())
            .append("gmtCreate", getGmtCreate())
            .append("delFlag", getDelFlag())
            .toString();
    }
}
